<?php

namespace catchAdmin\apipatient\validate;

use think\Validate;

class MedicationReminderValidate extends Validate
{
    protected $rule = [
        'reminderList|参数' => "require|array",
        'reminderList.0.drug_code|药品编号' => 'require',
        'reminderList.0.drug_name|药品名称' => 'require',
        'reminderList.0.take_time|服用时间' => 'require|array',
        'reminderList.0.first_reminder_time|首次提醒时间' => 'require',
        'reminderList.0.cycle_unit|用药周期单位' => 'require',
        'reminderList.0.frequency|提醒频次' => 'require',
        'reminderList.0.usage|用法用量' => 'require',
        'reminderList.0.taboo|注意事项及禁忌' => 'require',
        'reminderList.0.patientId|患者id' => 'require',
        'reminderList.0.patientName|患者姓名' => 'require'
    ];
}